import { Request } from 'express';
import { req_info_type } from '../../../Classes/cla_req_info_type';
import { req_cur_headers_info } from '../../../../../Classes/cla_req_cur_headers_info';

const req_info_increase_typeTag = 'req_info_increase_type';

/**
 * 标签 描述
 */
export const prop_increase_type_describe = 'describe';

/**
 * 标签名
 */
export const prop_increase_type_name = 'name';

export class req_info_increase_type extends req_cur_headers_info {
  get [Symbol.toStringTag]() {
    return req_info_increase_typeTag;
  }

  constructor(req: Request) {
    super(req);
    let req_body = req.body;

    this[prop_increase_type_describe] = req_body[prop_increase_type_describe];

    this[prop_increase_type_name] = req_body[prop_increase_type_name];
  }

  /**
   * 当前 标签 的 id
   */
  id: string = '';

  /**
   * 标签名
   */
  [prop_increase_type_name]: string;

  /**
   * 标签 描述
   */
  [prop_increase_type_describe]: string;
}
